<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="st" uri="http://www.springframework.org/tags"%>

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>扑通扑通</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<c:set var="ctx" value="" />
<link rel="stylesheet"
	href="${ctx}/static/resource/css/theme.css?version=0.1">
<script src="${ctx}/static/resource/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript">
 $(function(){
	 var url='${ctx}/qrcode.do';
	// alert(url);
	 $.ajax({
		 　url: url,
		  type: "GET",
		  success:function(data){
			 // var imageurl = data.responseText;
			  // alert(data);
			  $("#qrcodeimg").attr("src",data);
			  
		  },
		  　error:function(er){
		console.log("error for getting qrcode");
		  }});
 })
</script>
</head>
<body>
	<div class="wrapper">
		<div class="user-banner">
			<img src="${ctx}/static/resource/img/avatar.jpg" alt="">
			<h1>
				张阿三 <span>欢迎您！</span>
			</h1>
		</div>
		<div class="renminbi">
			<h1>
				60元 <span>累计提成</span>
			</h1>
			<h2>
				10元 <span>余额</span>
			</h2>
		</div>
		<div class="qr">
			<img id="qrcodeimg" src="" height="200" width="200" alt="">
			<h5>分享二维码给好友赚取提成</h5>
			<h6>（*提成可点餐使用）</h6>
		</div>
		<dl class="friends">
			<dt>好友信息</dt>
			<dd>
				<img src="${ctx}/static/resource/img/avatar.jpg" alt="">
				<h5>李四</h5>
				<h6>
					<span>提成金额: 5元</span> <span>点餐次数: 18</span>
				</h6>
			</dd>
			<dd>
				<img src="${ctx}/static/resource/img/avatar.jpg" alt="">
				<h5>李四</h5>
				<h6>
					<span>提成金额: 5元</span> <span>点餐次数: 18</span>
				</h6>
			</dd>
			<dd>
				<img src="${ctx}/static/resource/img/avatar.jpg" alt="">
				<h5>李四</h5>
				<h6>
					<span>提成金额: 5元</span> <span>点餐次数: 18</span>
				</h6>
			</dd>
			<dd>
				<img src="${ctx}/static/resource/img/avatar.jpg" alt="">
				<h5>李四</h5>
				<h6>
					<span>提成金额: 5元</span> <span>点餐次数: 18</span>
				</h6>
			</dd>
		</dl>
	</div>
</body>
</html>